//
#include<stdio.h>
void main()
{
   FILE *fp1,*fp2;
   char str[20];
   if((fp1=fopen("readme.txt","r"))==NULL){
       printf("file1 openned error.\n");
	   exit(0);
   }
   if((fp2=fopen("result.txt","w"))==NULL){
       printf("file2 created error.\n");
	   exit(0);
   }
    while(fgets(str,20,fp1)!=NULL)
		fputs(str,fp2);
	fclose(fp1);
	fclose(fp2);
  }
